package com.itany.springcloud.springcloudeurekaopenfeignconsumer.service.fallback;

import com.itany.springcloud.springcloudcommon.entity.User;
import com.itany.springcloud.springcloudcommon.vo.ResponseResult;
import com.itany.springcloud.springcloudeurekaopenfeignconsumer.service.UserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceFallback implements UserService {
    @Override
    public ResponseResult findAll() {
        return ResponseResult.fail("findAll失败");
    }

    @Override
    public ResponseResult findById(Integer id) {
        return ResponseResult.fail("findById失败");
    }

    @Override
    public ResponseResult add(String username, String password) {
        return ResponseResult.fail("add失败");
    }

    @Override
    public ResponseResult add2(User user) {
        return ResponseResult.fail("add2失败");
    }

    @Override
    public ResponseResult remove(Integer id) {
        return ResponseResult.fail("remove失败");
    }

    @Override
    public ResponseResult modify(Integer id, String username, String password) {
        return ResponseResult.fail("modify失败");
    }
}
